<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;

class RegionModel extends Model
{
    use HasFactory;
    protected $table = 'region';
    protected $guarded = [];
    /**
     * 查看轮播图
     */
    public function scrollImg()
    {
        return $this->hasMany(ScrollImgModel::class,'id','district_id');
    }
}
